package com.mdb.open.epay.domain.dto.epay;

import cn.hutool.core.date.DatePattern;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.bc.validator.annotaion.validation.DateFormat;
import com.mdb.open.epay.enums.type.ReconTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author liuyi
 * @date 2019/11/14
 **/
@Data
@ApiModel(description="获取对账文件Dto")
public class GetReconFileDto extends DataObjectBase {

    private static final long serialVersionUID = 1L;

    /**
     * 对账日期
     */
    @ApiModelProperty(value = "对账日期")
    @NotBlank(message = "对账日期不能为空")
    @DateFormat(format = DatePattern.PURE_DATE_PATTERN,message = "对账日期格式不正確")
    private String reconDate;

    /**
     * 对账文件类型
     */
    @ApiModelProperty(value = "对账文件类型")
    private ReconTypeEnum reconType;

}